package hibdeveloperguide.dbaccess;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class SessionManager {

	private static SessionFactory sf = null;

	private SessionManager() {
	}
	
	public static SessionFactory getSessionFactory() {
		if(sf == null) {
			sf = new Configuration().configure().buildSessionFactory();
		}
		
		return sf;
	}
}
